package br.ufc.minijavaufc.ast;

import br.ufc.minijavaufc.parser.Token;
import br.ufc.minijavaufc.visitor.TypeVisitor;
import br.ufc.minijavaufc.visitor.Visitor;

public class Identifier {//extends Token{
	public Token token;
	public String id;

	public Identifier(Token token) {
		super();
		this.token = token;
		this.id = token.toString();
	}

	public void accept(Visitor visitor) {
		visitor.visit(this);
	}

	public Type accept(TypeVisitor visitor) {
		return visitor.visit(this);
	}
}
